<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>高博应诺信息科技有限公司CRM</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" th:href="@{/asserts/bower_components/bootstrap/dist/css/bootstrap.min.css}">
    <!-- Font Awesome -->
    <link rel="stylesheet" th:href="@{/asserts/bower_components/font-awesome/css/font-awesome.min.css}">
    <!-- Ionicons -->
    <link rel="stylesheet" th:href="@{/asserts/bower_components/Ionicons/css/ionicons.min.css}">
    <!-- Theme style -->
    <link rel="stylesheet" th:href="@{/asserts/dist/css/AdminLTE.min.css}">
    <!-- AdminLTE Skins. We have chosen the skin-blue for this starter
          page. However, you can choose any other skin. Make sure you
          apply the skin class to the body tag so the changes take effect. -->
    <link rel="stylesheet" th:href="@{/asserts/dist/css/skins/skin-blue.min.css}">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

    <!-- Google Font -->
    <link rel="stylesheet"
          href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">

    <style type="text/css">
        #nowTime {
            color: #fff;
            margin-top: 10px;
            font-size: 20px;
            font-family: 微软雅黑;
        }
    </style>
</head>
<!--
BODY TAG OPTIONS:
=================
Apply one or more of the following classes to get the
desired effect
|---------------------------------------------------------|
| SKINS         | skin-blue                               |
|               | skin-black                              |
|               | skin-purple                             |
|               | skin-yellow                             |
|               | skin-red                                |
|               | skin-green                              |
|---------------------------------------------------------|
|LAYOUT OPTIONS | fixed                                   |
|               | layout-boxed                            |
|               | layout-top-nav                          |
|               | sidebar-collapse                        |
|               | sidebar-mini                            |
|---------------------------------------------------------|
-->
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

    <!-- Main Header -->
    <header class="main-header">

        <!-- Logo -->
        <a th:href="@{/starter}" class="logo">
            <!-- mini logo for sidebar mini 50x50 pixels -->
            <span class="logo-mini"><b>C</b>RM</span>
            <!-- logo for regular state and mobile devices -->
            <span class="logo-lg"><b>geminno</b>CRM</span>
        </a>

        <!-- Header Navbar -->
        <nav class="navbar navbar-static-top" role="navigation">
            <!-- Sidebar toggle button-->
            <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
                <span class="sr-only">Toggle navigation</span>
            </a>
            <!-- Navbar Right Menu -->
            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">
                    <!-- Messages: style can be found in dropdown.less-->
                    <li class="dropdown messages-menu">
                        <div id="nowTime"></div>
                    </li>
                    <!-- /.messages-menu -->

                    <!-- Notifications Menu -->

                    <!-- User Account Menu -->
                    <li class="dropdown user user-menu">
                        <!-- Menu Toggle Button -->
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <!-- The user image in the navbar-->
                            <img th:src="@{/asserts/dist/img/user2-160x160.jpg}" class="user-image" alt="User Image">
                            <!-- hidden-xs hides the username on small devices so only the image appears. -->
                            <span class="hidden-xs" th:text="${session.user.personname}">管理员</span>
                        </a>
                        <ul class="dropdown-menu">
                            <!-- The user image in the menu -->
                            <li class="user-header">
                                <img th:src="@{/asserts/dist/img/user2-160x160.jpg}" class="img-circle"
                                     alt="User Image">
                                <p>
                                    <span th:text="${session.user.personname}">管理员</span>
                                    <small>Member since Nov. 2019</small>
                                </p>
                            </li>
                            <!-- Menu Footer-->
                            <li class="user-footer">
                                <!--<div class="pull-left">-->
                                    <!--<a class="btn btn-primary btn-flat" th:href="@{/member/updatePasswordUI}"-->
                                       <!--target="menuFrame">-->
                                        <!--<i class="fa fa-edit"></i>修改密码</a>-->
                                <!--</div>-->
                                <div class="pull-right">
                                    <a th:href="@{/member/loginOut}" class="btn btn-primary btn-flat"><i
                                            class="fa fa-sign-out"></i> 注销</a>
                                </div>
                            </li>
                        </ul>
                    </li>
                    <!-- Control Sidebar Toggle Button -->
                    <li>
                        <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
                    </li>
                </ul>
            </div>
        </nav>
    </header>
    <!-- Left side column. contains the logo and sidebar -->
    <aside class="main-sidebar">

        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">

            <!-- Sidebar user panel (optional) -->


            <!-- search form (Optional) -->

            <!-- /.search form -->

            <!-- Sidebar Menu -->
            <ul class="sidebar-menu" data-widget="tree">
                <li class="header" style="font-size: 20px;">菜单列表</li>
                <!-- Optionally, you can add icons to the links -->

                <li class="treeview" th:if="${session.user.department == '市场'}">
                    <a href="#">
                        <!-- 图片显示-->
                        <i class="fa fa-user"></i>
                        <span>我的院校</span>
                        <span class="pull-right-container">
        				<i class="fa fa-angle-left pull-right"></i>
        			  </span>
                    </a>
                    <!-- 子级菜单-->
                    <ul class="treeview-menu" >
                        <li><a th:href="@{/campus/infoFindAll}" target="menuFrame">信息采集</a></li>
                        <li><a th:href="@{/campusVisit/findAll}" target="menuFrame">拜访记录</a></li>
                    </ul>
                </li>

                <li class="treeview" th:if="${session.user.department != 'admin'}" >
                    <a href="#"><i class="fa fa-book"></i> <span>实训管理</span>
                        <span class="pull-right-container">
                <i class="fa fa-angle-left pull-right"></i>
              </span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a th:href="@{/training/trainingOrderList}" target="menuFrame">实训订单</a></li>
                        <li><a th:href="@{/ds/dsShow}" target="menuFrame">日常经费</a></li>
                    </ul>
                </li>

                <li class="treeview"  th:if="${session.user.department == 'hrc'}">
                    <a href="#"><i class="fa fa-industry"></i> <span>企业培训</span>
                        <span class="pull-right-container">
		        <i class="fa fa-angle-left pull-right"></i>
		      </span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a th:href="@{/company/findAll}" target="menuFrame">企业客户</a></li>
                        <li><a th:href="@{/comVisit/visitList}" target="menuFrame">拜访记录</a></li>
                        <li><a th:href="@{/cr/crShow}" target="menuFrame">合作成果</a></li>
                        <li><a th:href="@{/teacher/list}" target="menuFrame">授课人信息</a></li>
                    </ul>
                </li>

                <li class="treeview"  th:if="${session.user.department == 'hrc'}">
                    <a href="#"><i class="fa  fa-users"></i> <span>就业管理</span>
                        <span class="pull-right-container">
		        <i class="fa fa-angle-left pull-right"></i>
		      </span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a th:href="@{/career/findAll}" target="menuFrame">班级列表</a></li>
                    </ul>
                </li>

                <li class="treeview"  th:if="${session.user.department == 'admin'}">
                    <a href="#"><i class="fa fa-gear"></i> <span>系统管理</span>
                        <span class="pull-right-container">
		        <i class="fa fa-angle-left pull-right"></i>
		      </span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a th:href="@{/user/list}" target="menuFrame">人员维护</a></li>
                    </ul>
                </li>
            </ul>
            <!-- /.sidebar-menu -->
        </section>
        <!-- /.sidebar -->
    </aside>

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->


        <!-- Main content -->
        <section class="content container-fluid">

            <!--------------------------
              | Your Page Content Here |
              -------------------------->
            <iframe id="menuFrame" name="menuFrame" th:src="@{/welcome}" style="overflow:visible;"
                    scrolling="yes"
                    frameborder="no" height="100%" width="100%">
                <!--页面显示的位置-->
            </iframe>

        </section>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->

    <!-- Main Footer -->
    <footer class="main-footer" style="text-align: center;">
        <!-- To the right -->
        <div class="pull-right hidden-xs">

        </div>
        <!-- Default to the left -->
        <strong>Copyright &copy; 2019 <a href="http://www.gem-inno.com">江苏省苏州高博优智开发工作室</a> | </strong>版权所有 盗版必究.
    </footer>

    <!-- Control Sidebar -->
    <aside class="control-sidebar control-sidebar-dark">
        <!-- Create the tabs -->
        <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
            <li class="active"><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>
            <li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>
        </ul>
        <!-- 右侧 -->
        <!-- Tab panes -->
        <div class="tab-content">
            <!-- Home tab content -->
            <div class="tab-pane active" id="control-sidebar-home-tab">
                <h3 class="control-sidebar-heading">Recent Activity</h3>
                <ul class="control-sidebar-menu">
                    <li>
                        <a href="javascript:;">
                            <i class="menu-icon fa fa-birthday-cake bg-red"></i>

                            <div class="menu-info">
                                <h4 class="control-sidebar-subheading">Langdon's Birthday</h4>

                                <p>Will be 23 on April 24th</p>
                            </div>
                        </a>
                    </li>
                </ul>
                <!-- /.control-sidebar-menu -->

                <h3 class="control-sidebar-heading">Tasks Progress</h3>
                <ul class="control-sidebar-menu">
                    <li>
                        <a href="javascript:;">
                            <h4 class="control-sidebar-subheading">
                                Custom Template Design
                                <span class="pull-right-container">
                    <span class="label label-danger pull-right">70%</span>
                  </span>
                            </h4>

                            <div class="progress progress-xxs">
                                <div class="progress-bar progress-bar-danger" style="width: 70%"></div>
                            </div>
                        </a>
                    </li>
                </ul>
                <!-- /.control-sidebar-menu -->

            </div>
            <!-- /.tab-pane -->
            <!-- Stats tab content -->
            <div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div>
            <!-- /.tab-pane -->
            <!-- Settings tab content -->
            <div class="tab-pane" id="control-sidebar-settings-tab">
                <form method="post">
                    <h2 class="control-sidebar-heading"><a href="http://www.gem-inno.com">苏州高博优智开发工作室</a> </h2>

                    <div class="form-group">
                        <label class="control-sidebar-subheading">
                            成员：
                        </label>
                        <br>
                        <p>
                            肖俊玲-------<a href="Mailto:1348200269@qq.com">给我发邮件</a>
                        </p>
                        <p>
                            谢声伟-------<a href="Mailto:2367668133@qq.com">给我发邮件</a>
                        </p>
                        <p>
                            管阳红-------<a href="Mailto:1174601350@qq.com">给我发邮件</a>
                        </p>
                        <p>
                            刘志勇-------<a href="Mailto:1747395347@qq.com">给我发邮件</a>
                        </p>
                    </div>
                    <!-- /.form-group -->
                </form>
            </div>
            <!-- /.tab-pane -->
        </div>
    </aside>
    <!-- /.control-sidebar -->
    <!-- Add the sidebar's background. This div must be placed
    immediately after the control sidebar -->
    <div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->

<!-- REQUIRED JS SCRIPTS -->

<!-- jQuery 3 -->
<script th:src="@{/asserts/bower_components/jquery/dist/jquery.min.js}"></script>
<!-- Bootstrap 3.3.7 -->
<script th:src="@{/asserts/bower_components/bootstrap/dist/js/bootstrap.min.js}"></script>
<!-- AdminLTE App -->
<script th:src="@{/asserts/dist/js/adminlte.min.js}"></script>

<!-- Optionally, you can add Slimscroll and FastClick plugins.
     Both of these plugins are recommended to enhance the
     user experience. -->

<!--按照显示页面高度显示-->
<script type="text/javascript">
    $(function () {
        var hh = window.screen.availHeight - 210
        $('.content').css('height', hh + 'px');

        function setIframeHeight(iframe) {
            if (iframe) {
                var iframeWin = iframe.contentWindow || iframe.contentDocument.parentWindow;
                var innerHeight = iframeWin.document.body.scrollHeight;
                if (iframeWin.document.body) {
                    // iframe.height = iframeWin.document.querySelector('#menuFrame').scrollHeight + 20 || innerHeight;
                    // alert(iframe.height)
                }
            }
        }

        var iframe = document.getElementById('menuFrame');
        iframe.onload = function () {
            setIframeHeight(iframe);
        };
    });
</script>
<script type="text/javascript">

    countTime();
    setInterval(countTime, 1000);

    function countTime() {
        var nowTime = new Date();
        var year = nowTime.getFullYear()
        var month = nowTime.getMonth() + 1;
        var date = nowTime.getDate();
        var week = nowTime.getDay();
        week = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六")[week];
        var hour = nowTime.getHours();
        hour = hour < 10 ? "0" + hour : hour;
        var mintues = nowTime.getMinutes();
        mintues = mintues < 10 ? "0" + mintues : mintues;
        var seconds = nowTime.getSeconds();
        seconds = seconds < 10 ? "0" + seconds : seconds;
        $("#nowTime").html(year + "年" + month + "月" + date + "日  " + hour + ":" + mintues + ":" + seconds + "  " + week);
    }
</script>

<script type="text/javascript">
    if(top.location != self.location){
        top.location = self.location;
    }
</script>

</body>
</html>